package WebModule::Station;

use strict;

use base qw(WebModule);

__PACKAGE__->meta->setup(
    table   => 'stations',

    columns => [
        id          => { type => 'serial', not_null => 1 },
        province_id => { type => 'integer', not_null => 1 },
        station     => { type => 'varchar', length => 12, not_null => 1 },
        url         => { type => 'varchar', length => 200, not_null => 1 },
        have_get    => { type => 'integer', default => '0', not_null => 1 },
    ],

    primary_key_columns => [ 'id' ],

    unique_key => [ 'station' ],
);

1;

